<div class="search">
  <input type="text" [(ngModel)]="keyword">
  <button (click)="doSearch()">搜索</button>

  <br>
  <br>
  <ul>
    <li *ngFor="let item of historyList; let key=index;">{{item}}--- <button (click)="deleteHistory(key)">X</button></li>
  </ul>
</div>

